<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAreasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('areas', function (Blueprint $table) {
            $table->increments('id');
            //地区名称
            $table->string('name');
            //地区域名前缀
            $table->string('domain');
            //地区父分类
            $table->integer('parent');
            //地区路径
            $table->string('path');
            //地区状态
            $table->integer('status');
            //是否开启地区分站
            $table->integer('station');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('areas');
    }
}
